package com.sc.nft.service.impl;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sc.nft.dao.CollectionGiftLogDao;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sc.nft.entity.UserInfo;
import com.sc.nft.entity.vo.CollectionTransferDetailsVO;
import com.sc.nft.entity.vo.CollectionTransferSimpleListVO;
import com.sc.nft.service.CollectionGiftLogService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * 权益道具赠送日志(CollectionGiftLog)表服务实现类
 *
 * @author 王伟成
 * @since 2024-03-16 15:19:39
 */
@Slf4j
@RequiredArgsConstructor
@Service
public class CollectionGiftLogServiceImpl implements CollectionGiftLogService {

    private final CollectionGiftLogDao collectionGiftLogDao;
    @Override
    public IPage<CollectionTransferSimpleListVO> collectionTransferSimpleList(UserInfo userInfo, Page mp) {
        return collectionGiftLogDao.collectionTransferSimpleList(userInfo,mp);
    }
    @Override
    public CollectionTransferDetailsVO getByIdDetails(Long id) {
        CollectionTransferDetailsVO byIdDetails = collectionGiftLogDao.getByIdDetails(id);
        byIdDetails.imgDecide();
        return byIdDetails;
    }
}
